/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package santiago.codebase;

import java.rmi.Remote;
import java.rmi.RemoteException;
import santiago.domain.Player;

@Deprecated
public interface IConnectionServer extends Remote {

    /**
     * Check if the player is already connected
     *
     * @param PlayerName
     * @return
     * @throws RemoteException
     */
    boolean isConnected(String PlayerName) throws RemoteException;

    /**
     * Allow a player to join the connection server
     *
     * @param Player
     * @throws RemoteException
     */
    void connect(Player Player) throws RemoteException;

    /**
     * Allow a player to leave the connection server
     *
     * @param Player
     * @throws RemoteException
     */
    void disconnect(Player Player) throws RemoteException;
}
